package test;

import java.util.Random;

public class Akktivita 
{
	public static final Random rnd = new Random();
	
	private int trvanie;
	
	public Akktivita()
	{
		trvanie = rnd.nextInt(100);
	}
	
	public Akktivita(int trv)
	{
		trvanie = trv;
	}
	
	public void rob()
	{
		System.out.println(trvanie);
	}
	
	public boolean jeAktivna()
	{
		return (trvanie <= 0) ? false : true;
	}
}
